import Vue from 'vue';
import { router } from './router/index';
import store from './store';
import Util from './libs/util';
import App from './app.vue';

new Vue({
    el: '#app',
    router: router,
    store: store,
    render: h => h(App),
    mounted() {
    	// 设置需要缓存的路由
    	this.$store.commit('initCachePage');
    	// 更新路由菜单
    	this.$store.commit('updateMenulist')
    }
});
